home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group02b.txt
/
000133_icon-group-sender_Thu Nov 21 09:03:51 2002.msg
< prev
next >
Wrap
Internet Message Format
|
2003-01-02
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id gALG3hM12630
for icon-group-addresses; Thu, 21 Nov 2002 09:03:43 -0700 (MST)
Message-Id: <200211211603.gALG3hM12630@baskerville.CS.Arizona.EDU>
X-Authentication-Warning: weaver.tuc.noao.edu: swampler set sender to swampler@noao.edu using -f
Subject: RE: tab in regex
From: Steve Wampler <swampler@noao.edu>
To: jsampson-indexer <jsampson@indexes.u-net.com>
Cc: icon2002@OptOnLine.net, icon-group@cs.arizona.edu
Date: 21 Nov 2002 06:57:35 -0800
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
On Wed, 2002-11-20 at 15:05, jsampson-indexer wrote:
> I know real Iconeers don't use regex's, but the program I am using takes
> them as user input - being brief one-liners they are suitable for this. In
> my case here I think mapping tabs to another character and then back again
> is probably the best kludge. The program searches tab-delimited data files
> so the tab char has to be distinguished from other white-space chars.
John,
I haven't been able to produce a problem with using tabs in REs. For
example:
-----------------------------------------
link regexp
procedure main(args)
pat := RePat("\t")
str := "now is the time "
write(image(str))
str ? {
while write(tab(ReFind(pat))) do move(1)
}
end
-------------------------------------------
works as expected, producing:
-------------------------------------------
"now\tis the\ttime\t"
now
is the
time
-------------------------------------------
Do you have a sample program that illustrates the problem
you're having that you can share? Perhaps it's really
some other problem masquerading as a problem with tabs in
regex's.
-Steve
--
Steve Wampler -- swampler@noao.edu
Quantum materiae materietur marmota monax si marmota
monax materiam possit materiari?